home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ CMD Options 2.xpl < prev    next >
Text File  |  2003-08-05  |  2KB  |  66 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="7"
  3. "COUNT"="3"
  4. "UIPATH 1"="System\Security\Disabled Features"
  5. "UIPATH 2"="Appearance\System\Command Prompt"
  6. "UIPATH 3"="Program Options\Built in Windows Apps\Command Prompt"
  7. "NAME"="Command Prompt CMD Enabled"
  8. "VERSION"="1.02"
  9. "OSVERSION"="0001011"
  10. "LANGUAGE"="VBScript"
  11. "TEXT 1"="Allow Command Prompt and batch files (default)"
  12. "TEXT 2"="Disallow Command Prompt but allow batch files"
  13. "TEXT 3"="Disallow Command Prompt and disallow batch files"
  14. "DESCRIPTION 1"="This setting can be used to allow or disallow the command prompt and/or batch files (*.BAT, *.CMD)."
  15. "AUTHOR"="Xteq Systems"
  16. "CONTACTURL"="http://www.xteq.com"
  17. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  18. "COMMENT 1"=" "
  19.  
  20.  
  21.  
  22. sPath="HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System\DisableCMD"
  23.  
  24.  
  25. Sub Plugin_Initialize 
  26.     i=RegReadValue(sPath)
  27.     if i=0 or IsEmpty(i) then
  28.        Call SetUIElement(1,true) 
  29.     else
  30.        if i=2 then
  31.           Call SetUIElement(2,true)
  32.        else
  33.           Call SetUIElement(3,true)
  34.        end if
  35.     end if  
  36. End Sub
  37.  
  38. Sub Plugin_CheckData(ElementIndex)
  39. End Sub
  40.  
  41. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  42.  i=0
  43.  
  44.  if GetUIElement(1)=true then i=0
  45.  if GetUIElement(2)=true then i=2
  46.  if GetUIElement(3)=true then i=1
  47.  
  48.  
  49.  
  50.  if i>0 then
  51.     Call RegWriteValue(sPath,i,2) 
  52.  else
  53.     s=RegReadValue(sPath)
  54.     if IsEmpty(s)=false then
  55.        Call RegDeleteValue(sPath)
  56.     end if
  57.  end if
  58. End Sub
  59.  
  60.  
  61. Sub Plugin_Terminate 
  62. End Sub
  63.  
  64.  
  65.  
  66.